package com.wing.sys.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name = "sys_auth")
public class  Auth {
	/**
	 *当type=TYPE_CHANNEL 时 owner_id=角色ID res_id=频道ID  指角色有权限的频道
	 */
	public static String TYPE_CHANNEL = "channel";
	/**
	 *当type=TYPE_LAYOUT 时 owner_id=站点ID res_id=框架ID  指网站有权限的框架
	 */
	public static String TYPE_LAYOUT = "layout";
	/**
	 *当type=TYPE_TEMPLATE 时 owner_id=站点ID res_id=模板ID  指网站有权限的模板
	 */
	public static String TYPE_TEMPLATE = "template";
	public static String TYPE_LOOKFEL = "lookfeel";
	/**
	 *当type=TYPE_TEMPLATE 时 owner_id=站点ID res_id=功能ID  指网站有权限的模板
	 */
	public static String TYPE_FUNCTION = "function";
	/**
	 *当type=TYPE_SITE 时 owner_id=用户ID res_id=站点ID  指网站的管理者是谁 
	 */
	public static String TYPE_SITE = "site";

  	@Id
  	@Column(name = "id")
  	private String id;
  	@Column(name = "owner_id")
  	private String owner_id;
  	@Column(name = "res_id")
  	private String res_id;
  	@Column(name = "type")
  	private String type;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getOwner_id() {
		return owner_id;
	}
	public void setOwner_id(String owner_id) {
		this.owner_id = owner_id;
	}
	public String getRes_id() {
		return res_id;
	}
	public void setRes_id(String res_id) {
		this.res_id = res_id;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
  	

}
